package org.zhaijisong.dao;

import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.*;

public interface CommonDao<E, PK extends Serializable> {
    public Integer add(E e);

    public void delete(PK id);

    public void batchDelete(@Param("ids") PK[] ids);

    public void update(E e);

    public E getById(@Param("id") PK id);

    public List<E> getAll();

    public List<E> getList(E e);
}
